package com.sjn.oauth2.controlelr;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @Author: sjn
 * @Data: 2021/6/30 15:39
 */
@RestController
@RequestMapping("test")
public class TestController {

    @RequestMapping("")
    public Principal getUser(Principal principal){
        return principal;
    }
}
